@import '../../less/base';
body {
  background-color: #fafafa;
  color: #303133;
  // 头部区域
  header {
    width: 100%;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    .top {
      position: relative;
      height: 11.7333vw;
      padding: 1.8667vw 0.8vw;
      background-color: #fff;
      text-align: center;
      h1 {
        font-size: 4.2667vw;
        line-height: 8vw;
      }
      .icon-zuojiantou {
        color: #000;
        font-size: 6.1333vw;
        position: absolute;
        left: 1.3333vw;
        top: 2.9333vw;
      }
    }
  }
  // 主体区域
  .main {
    padding-top: 11.7333vw;
    padding-bottom: 14.1333vw;
    // 轮播图
    .banner {
      position: relative;
      height: 100vw;
      img {
        width: 100%;
        height: 100%;
      }
      .number {
        position: absolute;
        z-index: 999;
        right: 18px;
        bottom: 36px;
        padding: 1px 9px;
        background: rgba(0, 0, 0, 0.363);
        border-radius: 25px;
        color: #fff;
        font-size: 13px;
      }
    }
    // 商品信息
    .goods-info-top {
      background: #fff;
      padding: 3.2vw 4vw;
      margin-top: 3.2vw;
      height: 25.3333vw;
      .top {
        display: flex;
        justify-content: space-between;
        min-height: 5.3333vw;
        margin-bottom: 2.6667vw;
        line-height: 1;
        .left {
          display: flex;
          align-items: center;

          i {
            font-size: 3.4667vw;
            line-height: 1;
            color: #fa2209;
            margin-bottom: -1.3333vw;
          }
          em {
            color: #fa2209;
            margin-right: 1.8667vw;
            font-size: 5.6vw;
          }
          span {
            font-size: 3.4667vw;
            text-decoration: line-through;
            color: #959595;
            margin-bottom: -0.8vw;
          }
        }
        .right {
          display: flex;
          align-items: flex-end;
          font-size: 3.2vw;
          color: #959595;
          line-height: 1;
        }
      }
      .bottom {
        font-size: 4vw;
        line-height: 5.3333vw;
        color: #303133;
        display: -webkit-box;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
    }
    // 服务
    .service {
      min-height: 3.2vw;
      .box {
        padding: 3.2vw 4vw;
        display: flex;
        align-items: center;
        font-size: 3.4667vw;
        .box1 {
          flex: 1;
          .float {
            float: left;
            font-size: 13px;
            margin: 4px 7px;
            .iconfont {
              color: #fa2209;
              margin-right: 1.6vw;
            }
          }
        }
        .icon-xiangyoujiantou {
          color: #999;
          font-size: 3.4667vw;
        }
      }
    }
    // 评价
    .reviews {
      padding: 2.6667vw 4vw;
      background-color: #fff;
      .total {
        display: flex;
        font-size: 3.7333vw;
        margin-bottom: 3.2vw;
        .left {
          flex: 1;
        }
        .right {
          font-size: 12px;
          color: #999;
          span {
            margin-right: 1.0667vw;
          }
          .iconfont {
            font-size: 3.7333vw;
          }
        }
      }
      .list {
        .list-item {
          padding: 1.8667vw 0.5333vw;
          margin-bottom: 1.3333vw;
          border-bottom: 0.5px solid #f5f5f5;
          .user {
            display: flex;
            margin-bottom: 1.3333vw;
            align-items: center;
            .left {
              display: flex;
              margin-right: 1.8667vw;
              align-items: center;

              img {
                width: 6.6667vw;
                height: 6.6667vw;
                border-radius: 50%;
                margin-right: 1.3333vw;
              }
              span {
                font-size: 3.2vw;
              }
            }
            .right {
              .iconfont {
                font-size: 4.2667vw;
                &.icon-wujiaoxing- {
                  color: rgb(244, 162, 19);
                }
                &.icon-wujiaoxing {
                  color: rgb(178, 178, 178);
                }
              }
            }
          }
          .user-reviews {
            color: #333;
            margin: 2.1333vw 0;
            max-height: 10.1333vw;
            line-height: 5.0667vw;
          }
        }
      }
    }
    // 商品描述
    .goods-content {
      background-color: #fff;
      margin-top: 3.2vw;
      .goods-title {
        padding: 3.4667vw 4vw;
        font-size: 3.7333vw;
      }
      #goods-totalcontent {
        img {
          width: 100% !important;
        }
      }
    }
    // 遮罩
    .mask {
      display: none;
      width: 100vw;
      height: 100vh;
      position: fixed;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      transition: all 0.25s ease-in-out 0s;
    }
    // 弹窗
    .popup {
      background-color: #fff;
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 71.7333vw;
      z-index: 99999;
      border-radius: 3.4667vw 3.4667vw 0 0;
      padding: 3.2vw;
      overflow: hidden;
      transition: all 0.25s linear 0s;
      transform: translate3d(0px, 100%, 0px);
      &.change {
        transform: translateZ(0) !important;
      }
      .title {
        font-size: 4vw;
        line-height: 5.3333vw;
        margin-bottom: 6.6667vw;
        font-weight: 700;
        text-align: center;
      }
      .icon-guanbi {
        position: absolute;
        top: 4vw;
        right: 4vw;
        font-size: 4vw;
        font-weight: 700;
        color: rgb(144, 147, 153);
      }
      .bottom {
        padding: 0 4vw 0 10.6667vw;
        .bottom-item {
          position: relative;
          margin-bottom: 8vw;
          .iconfont {
            position: absolute;
            top: 0.5vw;
            left: -6.6667vw;
            color: #fa2209;
          }
          p {
            font-size: 3.7333vw;
            line-height: 4.8vw;
          }
          div {
            font-size: 3.4667vw;
            margin-top: 2.6667vw;
            color: #6d6d6d;
            line-height: 4.5333vw;
          }
        }
      }
    }
    // 弹图
    #img {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      max-width: 98vw;
      max-height: 98vh;

      z-index: 1001;
      transition: all 0.25s ease-in-out 0s;
    }
  }
  // 底部区域
  footer {
    display: flex;
    position: fixed;
    width: 100%;
    height: 14.1333vw;
    left: 0;
    bottom: 0;
    background-color: #fff;
    .left {
      min-width: 28.5333vw;
      height: 100%;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      margin-right: 1.6vw;
      a {
        position: relative;
        padding: 2px 0;
        line-height: 1;
        text-align: center;
        width: 42px;
        color: #303133;
        .iconfont {
          font-size: 5.8667vw;
        }
        p {
          font-size: 2.9333vw;
          margin-top: 1.0667vw;
        }
      }
    }
    .right {
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      .btn {
        flex: 1;
        font-size: 3.7333vw;
        height: 9.6vw;
        margin-right: 2.1333vw;
        color: #fff;
        border-radius: 6.6667vw;
        display: flex;
        justify-content: center;
        align-items: center;
        &.shopingcart {
          background: linear-gradient(90deg, #ffa600, #fb0);
        }
        &.buynow {
          background: linear-gradient(90deg, #f9211c, #ff6335);
        }
      }
    }
  }
}
